package com.evildog.workspace.life.application.service;

import com.evildog.workspace.dependencies.mybatis.object.QueryConditionDTO;

import com.evildog.workspace.common.object.PageQuery;
import com.evildog.workspace.common.result.PagedResult;
import com.evildog.workspace.life.application.bo.MicroHabitPageBO;
import com.evildog.workspace.life.application.bo.MicroHabitListBO;
import com.evildog.workspace.life.application.bo.MicroHabitBO;
import com.evildog.workspace.life.application.dto.MicroHabitPageDTO;
import com.evildog.workspace.life.application.dto.MicroHabitListDTO;
import com.evildog.workspace.life.application.dto.MicroHabitDTO;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
import com.evildog.workspace.life.application.entity.MicroHabit;

/**
 * <p>
 * microHabit Service
 * </p>
 *
 * @author evildog
 * @since 2020-08-10
 */
public interface MicroHabitService extends IService<MicroHabit> {

    /**
    * 自定义分页
    */
    PagedResult<MicroHabitPageBO> getPageList(PageQuery query, List<QueryConditionDTO> queryConditions, MicroHabitPageDTO pageDTO);

    /**
    * 获取List
    */
    List<MicroHabitListBO> getList(List<QueryConditionDTO> queryCondition, MicroHabitListDTO dto);

    /**
    * 获取详情
    */
    MicroHabitBO getDetailById(Long id);

    /**
    * 更新
    */
    boolean updateById(Long id, MicroHabitDTO param);

    /**
    * 保存
    */
    boolean save(MicroHabitDTO param);
}
